package org.wattdepot.cli.commands;

/**
 * Contains a method that validates HTML strings.
 * 
 * @author Jarret
 * 
 */
public class HTMLValidation {
  /**
   * Verifies if the extension is html.
   * 
   * @param html is the file extension
   * @return true if it is html else it is false
   */
  public boolean htmlValidation(String html) {
    int htmlExtension = html.length();
    String htmlValid = html.substring(htmlExtension - 4, htmlExtension);
    if (htmlValid.equalsIgnoreCase("html")) {

      return true;
    }
    return false;
  }
}
